/**
 * 
 */
package sqs.model;

import java.util.ArrayList;
import java.util.List;


/**
 * @author kjleng
 *
 */
public class RatingQuestionAnswer extends Answer {
	private RatingOptionAnswer ratingOptionAnswer;
	private List<RatingOptionAnswer> ratingOptionAnswers;
	
	public void addOption(Option option){
		ratingOptionAnswer = new RatingOptionAnswer();
		ratingOptionAnswer.setRatingOption((RatingOption)option);
		ratingOptionAnswers = new ArrayList<RatingOptionAnswer>();
		ratingOptionAnswers.add(ratingOptionAnswer);
	}
	
	public RatingOptionAnswer getRatingOptionAnswer() {
		return ratingOptionAnswer;
	}

	public void setRatingOptionAnswer(RatingOptionAnswer ratingOptionAnswer) {
		this.ratingOptionAnswer = ratingOptionAnswer;
	}

	public List<RatingOptionAnswer> getRatingOptionAnswers() {
		return ratingOptionAnswers;
	}

	public void setRatingOptionAnswers(List<RatingOptionAnswer> ratingOptionAnswers) {
		ratingOptionAnswer = ratingOptionAnswers.get(0);
		this.ratingOptionAnswers = ratingOptionAnswers;
	}

	
}
